package com.example.hehecat.yuejian1.mvp.contract;

import android.content.Context;

import com.example.hehecat.yuejian1.mvp.model.bean.ActivityBean;
import com.example.hehecat.yuejian1.mvp.model.bean.SuccessBean;
import com.example.hehecat.yuejian1.mvp.model.bean.UserBean;
import com.example.hehecat.yuejian1.ui.fragment.ActivityInfoFragment;

import java.util.List;

import retrofit2.Callback;
import rx.Subscriber;

public interface ActivityInfoContract {
    interface Model{
        void getActivity(int activity_id, Subscriber<ActivityBean> subscriber);
        void activityEnroll(int activity_id, int user_id,Callback<SuccessBean> callback);
        void collectActivity(int activity_id, int user_id,Callback<SuccessBean> callback);
        void isActivityCollect(int activity_id, int user_id,Callback<SuccessBean> callback);
    }

    interface View {
        void showMsg(String msg);
        void setCollect();
        void setUnCollect();
        void collectActivity();
        void isActivityCollect();

    }

    interface Presenter {
        void activityEnroll(int activity_id, int user_id);
        void collectActivity(int activity_id, int user_id);
        void isActivityCollect(int activity_id, int user_id);
    }
}
